package com.zqxq.lottery.service.sys;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.zqxq.lottery.entity.bo.sys.AddSysActivityBO;
import com.zqxq.lottery.entity.bo.sys.SysActivityBO;
import com.zqxq.lottery.entity.bo.sys.SysCouponBO;
import com.zqxq.lottery.entity.po.sys.SysActivityPO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author 苦智
 * @date 2018/5/23 13:52
 * @description
 * @ClassName ISysActivityService
 */
public interface ISysActivityService extends IService<SysActivityPO>{
    boolean saveUserActivity(SysActivityBO bo);

    Map<String,Object> queryUserActivityStatistic(Long userId);

    Page<Map<String,Object>> queryUserCouponList(Long userId, Integer status,Integer pageNo,Integer pageSize);

    List<Map<String,Object>> getAvailableCouponList(Long orderId);

    Map<String,Object> saveCouponConsume(Long couponId, Long orderId);

    Page querySysActivity(Map<String,Object> paramMap);

    AddSysActivityBO saveSysActivity(AddSysActivityBO bo);

    void deleteSysActivity(String activityId);

    SysCouponBO saveSysCoupon(SysCouponBO bo);

    void deleteSysCoupon(String couponId);

    Page querySysCoupon(Map<String,Object> paramMap);

    void acceptingCoupon();

    void updateCouponUsed(Long userId,Long couponId);

    Map<String,Object> getInviteRankData();
}
